import axios from 'axios';

const API_BASE_URL = 'http://localhost:8080/api/user'; // 后端接口 URL

export const userPage = (params) => axios.post(`${API_BASE_URL}/list`, { params });

export const addUser = (data) => axios.post(`${API_BASE_URL}/add`, data);

export const updateUser = (data) => axios.put(`${API_BASE_URL}/update`, data);

export const dicUser = () => axios.get(`${API_BASE_URL}/dicUser`);
export const deleteUser = (id) => axios.delete(`${API_BASE_URL}/deleteUser/${id}`);

